//# sourceURL=http://uMapApp/UI/Panel/SubPanel
define([
    "mhjs/mhjs",
    "./Panel",
    "../Search"
], function (
    mhjs,
    Panel
) {

    function SubPanel(option) {

        var _this = this;

        _this.ui = _this.ui || {};

        _this._list = [];
        _this.ui.title = new mhjs.Div({"class" : "title"});

        Panel.call(_this, option);
        _this.addClass("subPanel");


        _this
            .append(_this.ui.title)
        // .append(_this.ui.search)
        ;

    }

    var _class = SubPanel;
    mhjs.Inherit(_class, Panel);

    Object.defineProperties(_class.prototype, {
        "title" : {
            set : function (title) {
                var _this = this;
                _this._title = title;
                _this.ui.title.text(title);
            },
            get : function () {
                return this._title;
            }
        }
    });

    return _class;

});